package com.wanxi.array;

/**
 * 动态定义数组加内容
 */
public class DynamicArrayAddContent {
    public static void main(String[] args) {
        int[] arr = new int[4];
        arr[2] = 4;
//        arr[4] = 6;
        for (int i = 0; i < arr.length; i++) {
            System.out.println(arr[i]);
        }
//        int[] arrays = null;
//        System.out.println(arrays[0]);
    }
}
